package cn.calin.day05.demo27;

public class Test01 {
    public static void main(String[] args) {
        String str="abc";
        System.out.println(str);//abc因为String类型重写了toString

        Student s=new Student("蔡琳",22);
        System.out.println(s);//cn.calin.day05.demo27.Student@776ec8df
        //toString重写后为Student{name='蔡琳', age=22}
    }
}
